Release 10.1A: OpenEdge Development:
Programming Interfaces
Defining and initializing MEMPTR variables
As with any 4GL variable, you define a
MEMPTRvariable using theDEFINE VARIABLEstatement. Unlike most other data types,MEMPTRvariables also have two other features that you must initialize to use them for socket communications:Before you can read or write to a
MEMPTRvariable, you must set the size of memory reserved for it, in bytes, using the 4GLSET-SIZEstatement. Depending on your data and application, you might also have to specify the byte order for reading and writing.Generally, when writing and reading data on a socket, the client and server must agree on the byte order so Progress can consistently interpret, on both ends, the order of bytes that comprise each data type stored in the
MEMPTRregion. Thus, theMEMPTRdata type supports theSET-BYTE-ORDERstatement and theGET-BYTE-ORDERfunction to set and get the byte order for aMEMPTRvariable. For more information, see Chapter 8, " Introduction to External Program Interfaces."
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |